package testIo;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test01 {
    public static void main(String[] args) throws IOException {
        File file = new File("aaa.txt");
        FileOutputStream fos = new FileOutputStream(file);
        fos.write(1);
        fos.write(2);
        fos.close();
        System.out.println("写入完毕");
    }
}
